package cn.edu.scau.cmi.ZengLinghong.chapter05;

public class Retangle{
	double x, y, width, height;
	public void setX(double a) {
		x=a;
	}
	public double getX() {
		return x;
	}
	public void setY(double b) {
		y=b;
	}
	public double getY() {
		return y;
	}
	public void setWidht(double w) {
		if(w>0) width=w;
	}
	public double getWidth() {
		return width;
	}
	public void setHeight(double h) {
		if(h>0) height=h;
	}
	public double getheight() {
		return height;
	}
}
